using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NTTHAO.Web.BL.CommonPage;
using NTTHAO.CommonWeb;

public partial class Sites_Vigor_Webparts_Pages_Home : NTTHAO.CommonWeb.CommonUserControl
{
    public CommonPageGroup _Group = null;
    public DataTable _List1 = null;
    public CommonMenu _Menu1 = null;

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            _Group = this.GetCurrentPageGroup();
            _Menu1 = CommonMenu.GetCommonMenu(2);
            if (_Menu1 != null)
            {
                long total = 0;
                DataSet ds = CommonPageContent.GetPageByMenuID(_Menu1.ID, 1, true, -1, ContentSortTypes.DefaultThenInsertTimeDecrease, 1, int.MaxValue, ref total);
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    _List1 = ds.Tables[0];
                }
            }
        }
        catch { }
    }

    public string GetContentUrl(string menuPath, int contentID, string contentUrl)
    {
        return "/" + _Group.URLName + "/" + CommonMenu.GetUrlPath(menuPath) + "/" + contentUrl + "_" + contentID.ToString("0") + ".html";
    }
}
